

<%@ page import="com.surelution.projects.crm.CardAssign" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'cardAssign.label', default: 'CardAssign')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${cardAssignInstance}">
            <div class="errors">
                <g:renderErrors bean="${cardAssignInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="anonyAdjustIn"><g:message code="cardAssign.anonyAdjustIn.label" default="Anony Adjust In" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'anonyAdjustIn', 'errors')}">
                                    <g:textField name="anonyAdjustIn" value="${cardAssignInstance?.anonyAdjustIn}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="anonyAdjustOut"><g:message code="cardAssign.anonyAdjustOut.label" default="Anony Adjust Out" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'anonyAdjustOut', 'errors')}">
                                    <g:textField name="anonyAdjustOut" value="${cardAssignInstance?.anonyAdjustOut}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="anonyAll"><g:message code="cardAssign.anonyAll.label" default="Anony All" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'anonyAll', 'errors')}">
                                    <g:textField name="anonyAll" value="${cardAssignInstance?.anonyAll}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="anonyDestory"><g:message code="cardAssign.anonyDestory.label" default="Anony Destory" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'anonyDestory', 'errors')}">
                                    <g:textField name="anonyDestory" value="${cardAssignInstance?.anonyDestory}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="anonySend"><g:message code="cardAssign.anonySend.label" default="Anony Send" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'anonySend', 'errors')}">
                                    <g:textField name="anonySend" value="${cardAssignInstance?.anonySend}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyAdjustIn"><g:message code="cardAssign.companyAdjustIn.label" default="Company Adjust In" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'companyAdjustIn', 'errors')}">
                                    <g:textField name="companyAdjustIn" value="${cardAssignInstance?.companyAdjustIn}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyAdjustOut"><g:message code="cardAssign.companyAdjustOut.label" default="Company Adjust Out" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'companyAdjustOut', 'errors')}">
                                    <g:textField name="companyAdjustOut" value="${cardAssignInstance?.companyAdjustOut}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyAll"><g:message code="cardAssign.companyAll.label" default="Company All" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'companyAll', 'errors')}">
                                    <g:textField name="companyAll" value="${cardAssignInstance?.companyAll}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyDestory"><g:message code="cardAssign.companyDestory.label" default="Company Destory" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'companyDestory', 'errors')}">
                                    <g:textField name="companyDestory" value="${cardAssignInstance?.companyDestory}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companySend"><g:message code="cardAssign.companySend.label" default="Company Send" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'companySend', 'errors')}">
                                    <g:textField name="companySend" value="${cardAssignInstance?.companySend}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="countAllDestory"><g:message code="cardAssign.countAllDestory.label" default="Count All Destory" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'countAllDestory', 'errors')}">
                                    <g:textField name="countAllDestory" value="${cardAssignInstance?.countAllDestory}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="countAllSend"><g:message code="cardAssign.countAllSend.label" default="Count All Send" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'countAllSend', 'errors')}">
                                    <g:textField name="countAllSend" value="${cardAssignInstance?.countAllSend}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personAdjustIn"><g:message code="cardAssign.personAdjustIn.label" default="Person Adjust In" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personAdjustIn', 'errors')}">
                                    <g:textField name="personAdjustIn" value="${cardAssignInstance?.personAdjustIn}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personAdjustOut"><g:message code="cardAssign.personAdjustOut.label" default="Person Adjust Out" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personAdjustOut', 'errors')}">
                                    <g:textField name="personAdjustOut" value="${cardAssignInstance?.personAdjustOut}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personAll"><g:message code="cardAssign.personAll.label" default="Person All" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personAll', 'errors')}">
                                    <g:textField name="personAll" value="${cardAssignInstance?.personAll}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personDestory"><g:message code="cardAssign.personDestory.label" default="Person Destory" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personDestory', 'errors')}">
                                    <g:textField name="personDestory" value="${cardAssignInstance?.personDestory}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personRise"><g:message code="cardAssign.personRise.label" default="Person Rise" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personRise', 'errors')}">
                                    <g:textField name="personRise" value="${cardAssignInstance?.personRise}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personSend"><g:message code="cardAssign.personSend.label" default="Person Send" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'personSend', 'errors')}">
                                    <g:textField name="personSend" value="${cardAssignInstance?.personSend}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="stationName"><g:message code="cardAssign.stationName.label" default="Station Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardAssignInstance, field: 'stationName', 'errors')}">
                                    <g:textField name="stationName" value="${cardAssignInstance?.stationName}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>

            <div style="display:inline;position:relative;top:-700px;left:420px;">
	            <g:uploadForm action="cardAssignImport">
		            <div style="padding-top:30px;width:300px;">加油卡发卡统计——批量导入</div>
	                <div class="dialog">
	            		<g:field type="file" name="cardAssignFile"/><br>
						选择上传日期：<g:datePicker name="assignDate" precision="day" />
	            	</div>
	            	<div class="buttons">
	            		<span class="button"><g:submitButton name="upload" class="save" value="${message(code: 'default.button.upload.label', default: 'Upload')}" /></span>
	            	</div>
	            </g:uploadForm>
            </div>

        </div>
    </body>
</html>
